<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.css}">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script type="text/javascript" th:src="@{/bootstrap/js/jquery-3.5.1.js}"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.js}"></script>
    <style>

        .disableCss {
            pointer-events: none;
            color: #afafaf;
            cursor: default;
            opacity: 0.5;
        }

        .container-fluid {
            padding-right: 75px;
            padding-left: 75px;
        }
    </style>
</head>

<body>
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-auto column">
            <div class="page-header">
                <h3>
                    学生权限管理  <small>管理权限信息：</small>
                </h3>
            </div>
            <h2><a type="button" class="btn btn-success" th:href="@{/reportExcel/}+1">导出Excel表格</a></h2>
            <table class="table">
                <thead>
                <tr>
                    <th>学号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>权限</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="stu:${message}">
                    <td th:text="${stu.getStuid()}"></td>
                    <td th:text="${stu.getName()}"></td>
                    <td th:text="${stu.getSex()}"></td>
                    <td th:text="${stu.getPower()}"></td>
                    <td>
                        <div class="btn-group">
                            <button class="btn btn-default">授权功能</button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle"><span
                                    class="caret"></span></button>
                            <ul class="dropdown-menu">
<!--                                {stuid}/{powerNum}(stuid=${stu.getStuid()}.powerNum=1)}-->
                                <li><a th:href="@{/managementPower/validate1/}+${stu.getStuid()}">学生管理</a></li>
                                <li class="divider"></li>
                                <li><a th:href="@{/managementPower/validate2/}+${stu.getStuid()}">成绩管理</a></li>
                                <li class="divider"></li>
                                <li><a th:href="@{/managementPower/validate4/}+${stu.getStuid()}">Excel导出</a></li>
                                <li class="divider"></li>
                                <li><a th:href="@{/managementPower/validate3/}+${stu.getStuid()}">没有权限</a></li>
                                <li class="divider"></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
